package com.example.xyxwebbackend001.service;

import com.example.xyxwebbackend001.model.DTO.UserDTO;
import com.example.xyxwebbackend001.model.entity.User;
import com.example.xyxwebbackend001.model.vo.UserInfoVO;

import java.util.List;

public interface UserService {
    UserDTO authUser(String userName, String password);

    List<String> getRolesByUserId(int userId);

    void logout();

    boolean checkUsername(String username);

    boolean checkEmailExists(String email);

    Integer createUser(User user);

    List<UserInfoVO> getUsersByRole(String role, String keyword);

    int resetPassword(Integer userId);

    int updateUserStatus(Integer userId, Integer status);

    int forgetPassword(String email, String newPassword);
}
